package com.sixth.dao;

import com.sixth.entity.BusCustomer;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface BusCustomerDao {
    int deleteByPrimaryKey(@Param("identity")String identity);

    int insert(@Param("busCustomer") BusCustomer busCustomer);

    int insertSelective( BusCustomer record);

    BusCustomer selectByPrimaryKey(String identity);

    int updateByPrimaryKeySelective(@Param("busCustomer") BusCustomer record);

    int updateByPrimaryKey(BusCustomer record);

    List<BusCustomer> findAll();

    int update(@Param("busCustomer") BusCustomer busCustomer);

    int add(@Param("identity")String identity,@Param("custname") String custname,@Param("phone") String phone,@Param("address") String address,@Param("career") String career,@Param("sex") Integer sex, @Param("createtime")Date createtime);

    int dels(@Param("iid") String iid);

    List<BusCustomer> listByCondition(@Param("identity") String identity,@Param("custname") String custname,@Param("phone") String phone,@Param("address") String address,@Param("career") String career,@Param("sex") Integer sex);

    //int add(@Param("busCustomer") BusCustomer busCustomer);
}